Eclipse Platform
Pre-release 3.0

org.eclipse.core.runtime
Interface IProgressMonitorWithBlocking

All Superinterfaces:
IProgressMonitor
All Known Implementing Classes:
ProgressMonitorWrapper

public interface IProgressMonitorWithBlocking
extends IProgressMonitor

An extension to the IProgressMonitor interface for monitors that want to support feedback when an activity is blocked due to concurrent activity in another thread.

When a monitor that supports this extension is passed to an operation, the operation should call setBlocked whenever it knows that it must wait for a lock that is currently held by another thread. The operation should continue to check for and respond to cancelation requests while blocked. When the operation is no longer blocked, it must call clearBlocked to clear the blocked state.

Clients may implement this interface.

Since:
3.0
See Also:
IProgressMonitor

Field Summary
 
Fields inherited from interface org.eclipse.core.runtime.IProgressMonitor
UNKNOWN
 
Method Summary
 void clearBlocked()
          Clears the blocked state of the running operation.
 void setBlocked(IStatus reason)
          Indicates that this operation is blocked by some background activity.
 
Methods inherited from interface org.eclipse.core.runtime.IProgressMonitor
beginTask, done, internalWorked, isCanceled, setCanceled, setTaskName, subTask, worked
 

Method Detail

setBlocked

public void setBlocked(IStatus reason)
Indicates that this operation is blocked by some background activity. If a running operation ever calls setBlocked, it must eventually call clearBlocked before the operation completes.

See Also:
clearBlocked()

clearBlocked

public void clearBlocked()
Clears the blocked state of the running operation. If a running operation ever calls setBlocked, it must eventually call clearBlocked before the operation completes.

See Also:
setBlocked(org.eclipse.core.runtime.IStatus)

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.